<?php
defined ( 'IN_ADMIN' ) or exit ( 'No permission resources.' );
$show_dialog = 1;
include $this->admin_tpl ( 'header', 'admin' );
?>
<form method="post" name="frmlist" action="">
	<div class="table-list">
		<table width="100%" cellspacing="0">
			<thead>
				<tr>
					<th align="left" colspan="6">
						新闻动态管理 
						<?php if(empty($news)){?>
						| 
						<a href="/index.php?m=hchindex&c=crud&a=myadd&assort_type_id=<?php echo $newsTpyeId;?>">
							<em>新增新闻动态</em>
						</a>
						<?php }?>
					</th>
				</tr>
				<tr>
					<th width="30" align="center"><input type="checkbox" value="" id="check_box" onclick="selectall('id[]');"></th>
					<th align="center">名称</th>
					<th align="center">标题</th>
					<th align="center">内容摘要</th>
					<th align="center">管理操作</th>
				</tr>
			</thead>
			<?php
			if (is_array ( $news ) && count ( $news ) > 0) {
			?>
			<tr>
				<td align="center" width="35"><input type="checkbox" name="id[]"
					value="<?php echo $news['id']?>"></td>
				<td align="center" width="10%"><?php echo $news['name']?></a></td>
				<td align="center" width="10%"><?php echo $news['title']?></td>
				<td align="center"><?php echo $news['short_content'];?></td>
				<td align="center" width="10%"><a
					href='/index.php?m=hchindex&c=crud&a=myedit&id=<?php echo $news['id'] ?>'>编辑</a>
					| <a
					href="/index.php?m=hchindex&c=crud&a=myview&id=<?php echo $news['id'] ?>">查看</a>
					| <a
					href="/index.php?m=hchindex&c=crud&a=mydelone&id=<?php echo $news['id'] ?>"
					onclick="return confirm('确认删除记录吗？')">删除</a></td>
			</tr>
			<?php
				}else{
			?>
			<tr>
				<td align="center"colspan="5">没有查询到数据。</td>
			</tr>
			<?php }?>
		  	<thead>
				<tr>
					<th align="left" colspan="6">
						项目对接管理
						<?php if(empty( $projects )){?>
						| 
						<a href="/index.php?m=hchindex&c=crud&a=myadd&assort_type_id=<?php echo $projectTpyeId;?>">
							<em>新增项目对接</em>
						</a>
						<?php }?>
					</th>
				</tr>
				<tr>
					<th width="30" align="center">&nbsp;</th>
					<th align="center">名称</th>
					<th align="center">标题</th>
					<th align="center">内容摘要</th>
					<th align="center">管理操作</th>
				</tr>
			</thead>
			<?php
				if (is_array ( $projects ) && count ( $projects ) > 0) {
			?>
			<tr>
				<td align="center" width="35"><input type="checkbox" name="id[]"
					value="<?php echo $projects['id']?>"></td>
				<td align="center" width="10%"><?php echo $projects['name']?></a></td>
				<td align="center" width="10%"><?php echo $projects['title']?></td>
				<td align="center"><?php echo $projects['short_content'];?></td>
				<td align="center" width="10%"><a
					href='/index.php?m=hchindex&c=crud&a=myedit&id=<?php echo $projects['id'] ?>'>编辑</a>
					| <a
					href="/index.php?m=hchindex&c=crud&a=myview&id=<?php echo $projects['id'] ?>">查看</a>
					| <a
					href="/index.php?m=hchindex&c=crud&a=mydelone&id=<?php echo $projects['id'] ?>"
					onclick="return confirm('确认删除记录吗？')">删除</a></td>
			</tr>
			<?php
				}else{
			?>
			<tr>
				<td align="center"colspan="5">没有查询到数据。</td>
			</tr>
			<?php }?>
			<thead>
				<tr>
					<th align="left" colspan="6">
						人力资源管理
						<?php if(empty($hr)){?>
						| 
						<a href="/index.php?m=hchindex&c=crud&a=myadd&assort_type_id=<?php echo $hrTpyeId;?>">
							<em>新增人力资源展示</em>
						</a>
						<?php }?>
					</th>
				</tr>
				<tr>
					<th width="30" align="center">&nbsp;</th>
					<th align="center">名称</th>
					<th align="center">标题</th>
					<th align="center">内容摘要</th>
					<th align="center">管理操作</th>
				</tr>
			</thead>
			<?php
				if (is_array ( $hr ) && count ( $hr ) > 0) {
			?>
			<tr>
				<td align="center" width="35"><input type="checkbox" name="id[]"
					value="<?php echo $hr['id']?>"></td>
				<td align="center" width="10%"><?php echo $hr['name']?></a></td>
				<td align="center" width="10%"><?php echo $hr['title']?></td>
				<td align="center"><?php echo $hr['short_content'];?></td>
				<td align="center" width="10%"><a
					href='/index.php?m=hchindex&c=crud&a=myedit&id=<?php echo $hr['id'] ?>'>编辑</a>
					| <a
					href="/index.php?m=hchindex&c=crud&a=myview&id=<?php echo $hr['id'] ?>">查看</a>
					| <a
					href="/index.php?m=hchindex&c=crud&a=mydelone&id=<?php echo $hr['id'] ?>"
					onclick="return confirm('确认删除记录吗？')">删除</a></td>
			</tr>
			<?php
				}else{
			?>
			<tr>
				<td align="center"colspan="5">没有查询到数据。</td>
			</tr>
			<?php }?>
			<thead>
				<tr>
					<th align="left" colspan="6">
						项目路演管理
						<?php if(empty($roadshow)){?>
						| 
						<a href="/index.php?m=hchindex&c=crud&a=myadd&assort_type_id=<?php echo $roadshowTpyeId;?>">
							<em>新增项目路演展示</em>
						</a>
						<?php }?>
					</th>
				</tr>
				<tr>
					<th width="30" align="center">&nbsp; </th>
					<th align="center">名称</th>
					<th align="center">标题</th>
					<th align="center">内容摘要</th>
					<th align="center">管理操作</th>
				</tr>
			</thead>
			<?php
			if (is_array ( $loadshow ) && count ( $roadshow ) > 0) {
			?>
          	<tr>
				<td align="center" width="35"><input type="checkbox" name="id[]"
					value="<?php echo $roadshow['id']?>"></td>
				<td align="center" width="10%"><?php echo $roadshow['name']?></a></td>
				<td align="center" width="10%"><?php echo $roadshow['title']?></td>
				<td align="center"><?php echo $roadshow['short_content'];?></td>
				<td align="center" width="10%"><a
					href='/index.php?m=hchindex&c=crud&a=myedit&id=<?php echo $roadshow['id'] ?>'>编辑</a>
					| <a
					href="/index.php?m=hchindex&c=crud&a=myview&id=<?php echo $roadshow['id'] ?>">查看</a>
					| <a
					href="/index.php?m=hchindex&c=crud&a=mydelone&id=<?php echo $roadshow['id'] ?>"
					onclick="return confirm('确认删除记录吗？')">删除</a></td>
			</tr>
			<?php
				}else{
			?>
			<tr>
				<td align="center"colspan="5">没有查询到数据。</td>
			</tr>
			<?php }?>
			<thead>
				<tr>
					<th align="left" colspan="6">
						俱乐部活动管理
						<?php if(count($clubList)<3){?>
						| 
						<a href="/index.php?m=hchindex&c=crud&a=myadd&assort_type_id=<?php echo $clubTpyeId;?>">
							<em>新增俱乐部活动</em>
						</a>
						<?php }?>
					</th>
				</tr>
				<tr>
					<th width="30" align="center">&nbsp; </th>
					<th align="center">名称</th>
					<th align="center">标题</th>
					<th align="center">内容摘要</th>
					<th align="center">管理操作</th>
				</tr>
			</thead>
			<?php
			if (is_array ( $clubList ) && count ( $clubList ) > 0) {
				foreach ($clubList as $clubItem){
			?>
          	<tr>
				<td align="center" width="35"><input type="checkbox" name="id[]"
					value="<?php echo $clubItem['id']?>"></td>
				<td align="center" width="10%"><?php echo $clubItem['name']?></a></td>
				<td align="center" width="10%"><?php echo $clubItem['title']?></td>
				<td align="center"><?php echo $clubItem['short_content'];?></td>
				<td align="center" width="10%"><a
					href='/index.php?m=hchindex&c=crud&a=myedit&id=<?php echo $clubItem['id'] ?>'>编辑</a>
					| <a
					href="/index.php?m=hchindex&c=crud&a=myview&id=<?php echo $clubItem['id'] ?>">查看</a>
					| <a
					href="/index.php?m=hchindex&c=crud&a=mydelone&id=<?php echo $clubItem['id'] ?>"
					onclick="return confirm('确认删除记录吗？')">删除</a></td>
			</tr>
			<?php
				}	
			}else{
			?>
			<tr>
				<td align="center"colspan="5">没有查询到数据。</td>
			</tr>
			<?php }?>
			<thead>
				<tr>
					<th align="left" colspan="6">
						创业故事管理
						<?php if(count($stroyList)<3){?>
						| 
						<a href="/index.php?m=hchindex&c=crud&a=myadd&assort_type_id=<?php echo $storyTpyeId;?>">
							<em>新增创业故事</em>
						</a>
						<?php }?>
					</th>
				</tr>
				<tr>
					<th width="30" align="center">&nbsp; </th>
					<th align="center">名称</th>
					<th align="center">标题</th>
					<th align="center">内容摘要</th>
					<th align="center">管理操作</th>
				</tr>
			</thead>
			<?php
			if (is_array ( $stroyList ) && count ( $stroyList ) > 0) {
				foreach ($stroyList as $storyItem){
			?>
          	<tr>
				<td align="center" width="35"><input type="checkbox" name="id[]"
					value="<?php echo $storyItem['id']?>"></td>
				<td align="center" width="10%"><?php echo $storyItem['name']?></a></td>
				<td align="center" width="10%"><?php echo $storyItem['title']?></td>
				<td align="center"><?php echo $storyItem['short_content'];?></td>
				<td align="center" width="10%"><a
					href='/index.php?m=hchindex&c=crud&a=myedit&id=<?php echo $storyItem['id'] ?>'>编辑</a>
					| <a
					href="/index.php?m=hchindex&c=crud&a=myview&id=<?php echo $storyItem['id'] ?>">查看</a>
					| <a
					href="/index.php?m=hchindex&c=crud&a=mydelone&id=<?php echo $storyItem['id'] ?>"
					onclick="return confirm('确认删除记录吗？')">删除</a></td>
			</tr>
			<?php
				}	
			}else{
			?>
			<tr>
				<td align="center"colspan="5">没有查询到数据。</td>
			</tr>
			<?php }?>
			<thead>
				<tr>
					<th align="left" colspan="6">
						企业服务管理
						<?php if(count($serviceList)<3){?>
						| 
						<a href="/index.php?m=hchindex&c=crud&a=myadd&assort_type_id=<?php echo $serviceTpyeId;?>">
							<em>新增企业服务</em>
						</a>
						<?php }?>
					</th>
				</tr>
				<tr>
					<th width="30" align="center">&nbsp; </th>
					<th align="center">名称</th>
					<th align="center">标题</th>
					<th align="center">内容摘要</th>
					<th align="center">管理操作</th>
				</tr>
			</thead>
			<?php
			if (is_array ( $serviceList ) && count ( $serviceList ) > 0) {
				foreach ($serviceList as $serviceItem){
			?>
          	<tr>
				<td align="center" width="35"><input type="checkbox" name="id[]"
					value="<?php echo $serviceItem['id']?>"></td>
				<td align="center" width="10%"><?php echo $serviceItem['name']?></a></td>
				<td align="center" width="10%"><?php echo $serviceItem['title']?></td>
				<td align="center"><?php echo $serviceItem['short_content'];?></td>
				<td align="center" width="10%"><a
					href='/index.php?m=hchindex&c=crud&a=myedit&id=<?php echo $serviceItem['id'] ?>'>编辑</a>
					| <a
					href="/index.php?m=hchindex&c=crud&a=myview&id=<?php echo $serviceItem['id'] ?>">查看</a>
					| <a
					href="/index.php?m=hchindex&c=crud&a=mydelone&id=<?php echo $serviceItem['id'] ?>"
					onclick="return confirm('确认删除记录吗？')">删除</a></td>
			</tr>
			<?php
				}	
			}else{
			?>
			<tr>
				<td align="center"colspan="5">没有查询到数据。</td>
			</tr>
			<?php }?>
			<tr>
				<td colspan="10"><input type="submit" class="button"
					name="submitdel" onClick="doDel()" value="删除" /></td>
			</tr>
			</tbody>
		</table>
	</div>
</form>
</body>
<script type="text/javascript">
function doDel(){
	if(confirm('确认删除记录吗？')){
		document.frmlist.action='/index.php?m=hchindex&c=crud&a=mydel';
		submitchk.submit();
	}
}
</script>
</html>